export const tableOption = {
    expandAll: false,
    border: true,
    index: true,
    tree:true,
    column: [{
        label: '资源名称',
        prop: 'name',
        align: 'center',
        span: 24,
        rules: [{
            required: true,
            message: '资源名称不能为空',
            trigger: 'blur'
        }]
    },
    {
        label: '所属父级',
        align: 'center',
        slot: true,
        formslot: true,
        hide:true,
        prop: 'parentId',
        span: 24,
        rules: [{
            required: true,
            message: '请选择父级',
            trigger: 'blur'
        }]
    },
        {
            label: '权限标识',
            align: 'center',
            prop: 'permission',
            span: 24,
            rules: [{
                required: true,
                message: '权限标识不能为空',
                trigger: 'blur'
            }]
        },
        {
            label: '图标',
            prop: 'icon',
            align: 'center',
            span: 24
        },
        {
            label: '路径',
            prop: 'path',
            align: 'center',
            span: 24
        },
        {
            label: '组件',
            prop: 'component',
            align: 'center',
            span: 24
        },
        {
            label: '类型',
            prop: 'type',
            align: 'center',
            type: 'select',
            span: 24,
            dicData: [{
                label: '菜单',
                value: '0'
            },
                {
                    label: '按钮',
                    value: '1'
                },
                {
                    label: '功能',
                    value: '2'
                },
            ],
            rules: [{
                required: true,
                message: '类型不能为空',
                trigger: 'blur'
            }]
        },
        {
            label: '排序',
            prop: 'sort',
            align: 'center',
            dataType:"number",
            span: 24
        },
        {
            label: '路由缓存',
            prop: 'keepAlive',
            type: 'select',
            align: 'center',
            span: 24,
            dicData: [{
                label: '否',
                value: '0'
            },
                {
                    label: '是',
                    value: '1'
                }
            ],
            rules: [{
                required: true,
                message: '请选择是否缓存',
                trigger: 'blur'
            }]
        },
        {
            label: '创建时间',
            prop: 'createTime',
            type: 'datetime',
            align: 'center',
            addDisplay: false,
            editDisplay: false,
            format: 'yyyy-MM-dd HH:mm',
            valueFormat: 'yyyy-MM-dd HH:mm:ss',
            span: 24
        },
        {
            label: '更新时间',
            prop: 'updateTime',
            type: 'datetime',
            align: 'center',
            addDisplay: false,
            editDisplay: false,
            format: 'yyyy-MM-dd HH:mm',
            valueFormat: 'yyyy-MM-dd HH:mm:ss',
            span: 24
        }]
}
